package nsd.test.zy02;

public class SalesEmployee extends ColaEmployee {
    private int monSalary;
    private double x;

    public SalesEmployee(){

    }

    public SalesEmployee(String name, int month,int monSalary, double x) {
        super(name, month);
        this.monSalary = monSalary;
        this.x = x;
    }

    @Override
    public double getSalary(int month){
        if(super.getMouth()==month){
            return monSalary*x+100;
        }else {
            return monSalary*x;
        }
    }
}
